<ion-view view-title={{moduleTitle}} cache-view="false">
    <ion-nav-buttons side="left">
        <a class="button button-icon ion-arrow-left-c" ng-click="goBack()"></a>
    </ion-nav-buttons>

    <ion-content class="padding  has-header">
        <form name="detailForm" novalidate="" ng-submit="submitForm(detailForm)">
            <div class="list">
            	<label class="item item-input">
                    <span class="input-label">日志日期：</span>
                    <input  readonly="readonly" type="text" name="sales_log_date" ng-model="detail.sales_log_date"
                        
                           ng-model-options="{ updateOn: 'default blur', debounce: { default: 500, blur: 0 } }">
                </label>
                
                <label class="item item-input">
                    <span class="input-label">销售员：</span>
                    <input readonly="readonly" type="text" name="employee_name" ng-model="detail.employee_name"
                        
                           ng-model-options="{ updateOn: 'default blur', debounce: { default: 500, blur: 0 } }">
                </label>
                <insert-address addressoption="addressOption"></insert-address>
                <!--<insert-date dateoption="dateOption"></insert-date>-->
                <!--<insert-select form="detailForm" option="fertilizerOption"></insert-select>-->
                <label class="item item-input">
                    <span class="input-label">详细地址：</span>
                    <input type="text" name="addr_details" ng-model="detail.addr_details"
                        
                           ng-model-options="{ updateOn: 'default blur', debounce: { default: 500, blur: 0 } }">
                </label>
                <label class="item item-input">
                    <span class="input-label">客户名称:</span>
                    <input type="text" name="client" ng-model="detail.client"
                     
                           ng-model-options="{ updateOn: 'default blur', debounce: { default: 500, blur: 0 } }">
                </label>
                <label class="item item-input">
                    <span class="input-label">联系人:</span>
                    <input type="text" name="contact" ng-model="detail.contact"
                     
                           ng-model-options="{ updateOn: 'default blur', debounce: { default: 500, blur: 0 } }">
                </label>

                <label class="item item-input">
                    <span class="input-label">联系电话：</span>
                    <input type="text" name="phone" ng-model="detail.phone"
                        
                           ng-model-options="{ updateOn: 'default blur', debounce: { default: 500, blur: 0 } }">
                </label>



                <label class="item item-input">
                    <span class="input-label">工作内容主题:</span>
                    <input type="text" name="work_title" ng-model="detail.work_title"
                    
                           ng-model-options="{ updateOn: 'default blur', debounce: { default: 500, blur: 0 } }">
                </label>
                
                 <label class="item item-input">
                    <span class="input-label">详情或心得:</span>
                    <input type="text" name="work_details" ng-model="detail.work_details"
                    
                           ng-model-options="{ updateOn: 'default blur', debounce: { default: 500, blur: 0 } }">
                </label>
                
                
                <!-- Error Container for Password -->
                <div class="validation-error" ng-class="{'is-dirty':form.password.$dirty}"
                     ng-messages="detailForm.phone.$error" role="alert">
                    <div ng-messages-include="templates/system-templates/detail-errors.html"></div>
                </div>
            </div>
            <button class="button button-full button-positive" ng-disabled="detailForm.$invalid || detailEdit.editDisabled" type="submit">
                {{operation}}
            </button>
        </form>
    </ion-content>
    <!--头部和内容结束-->
</ion-view>